# -*- coding: utf-8 -*-
'''
Created on 2017年2月27日

@author: ZhuJiahui
'''

class GlobalNLP:
    '''
    需要事先指定
    '''
    NULL_STR = "EMPTY"
    
    CN_COLUMN_DELIMITER = "\t|\t"
    EN_COLUMN_DELIMITER = "\t|\t"
    CN_WORD_INNER_DELIMITER = "||"
    EN_WORD_INNER_DELIMITER = "||"
    
    PROJECT_DIR = "D:/Local/workspace/DeepTopicModel"
    STOPWORDS_DIR = PROJECT_DIR + "/nlp_utils/stopwords"
    
    SG_TAG_LIST = ["汽车", "财经", "IT", "健康", "体育", 
                      "旅游", "教育", "文化", "军事", "政治",  
                      "社会", "国内", "国际", "房产", "娱乐", 
                      "时尚", "传媒", "公益", "女性", "科技"]
    
    SG_TAG_DICT = {
        "汽车" : ["auto/", "auto.", "autos", "http://auto.sohu.com/", "http://auto.sina.com.cn/", "http://auto.qq.com/", "http://auto.ifeng.com/"], 
        "财经" : ["business", "finance", "money", "http://business.sohu.com/", "http://finance.sina.com.cn/", "http://money.163.com/", "http://finance.qq.com/", "http://finance.ifeng.com/"], 
        "IT" : ["/it.", ".it.", "/it/", ".it/", "digi", "mobile", "http://it.sohu.com/"], 
        "健康" : ["health", "kangq", "http://health.sohu.com/", "http://sina.kangq.com/", "http://fashion.ifeng.com/health/"], 
        "体育" : ["sports"], 
        "旅游" : ["travel", "tour", "http://travel.sohu.com/", "http://tour.sina.com.cn/", "http://fashion.ifeng.com/travel/"], 
        "教育" : ["edu", "http://learning.sohu.com/", "http://edu.sina.com.cn/", "http://edu.163.com/", "http://edu.qq.com/", "http://edu.ifeng.com/", "http://edu.sina.com.cn/y/"], 
        "文化" : ["culture", "/cul/", ".cul.", "/cul.", ".cul/", "history", "http://cul.sohu.com/", "http://cul.book.sina.com.cn/", "http://cul.qq.com/", "http://culture.ifeng.com/"], 
        "军事" : ["/mil.", "/mil/", ".mil.", ".mil/", "war", "http://mil.news.sohu.com/", "http://mil.news.sina.com.cn/", "http://war.163.com/", "http://mil.qq.com/", "http://news.ifeng.com/mil/"], 
        "政治" : ["politics", "politic", "legal.people"], 
        "社会" : ["society", "shehuixinwen", "shehui/", "http://news.sina.com.cn/society/", "http://news.163.com/shehui/", "society_index.shtml"], 
        "国内" : ["mainland", "taiwan", "domestic", "guoneixinwen", "china", "hb.people", "tw.people", "acftu.people", "cq.people", "gd.people", "chinapic", "http://news.163.com/domestic/", "china_index.shtml"], 
        "国际" : ["guojixinwen", "world", "http://news.sina.com.cn/world/", "http://news.163.com/world/", "world_index.shtml"], 
        "房产" : ["house", "http://house.sohu.com/", "http://house.sina.com.cn/", "http://house.163.com/", "http://house.qq.com/", "http://house.ifeng.com/"], 
        "娱乐" : ["yule", ".ent.", "/ent.", "/ent/", ".ent/", "http://yule.sohu.com/", "http://ent.sina.com.cn/", "http://ent.163.com/", "http://ent.qq.com/", "http://ent.ifeng.com/"], 
        "时尚" : ["luxury", "fashion", "http://luxury.qq.com/", "http://fashion.ifeng.com/"], 
        "传媒" : ["media", "http://media.sohu.com/", "http://news.sina.com.cn/media/", "http://media.163.com/"], 
        "公益" : ["gongyi", "http://gongyi.sohu.com/", "http://gongyi.163.com/", "http://gongyi.qq.com/", "http://gongyi.ifeng.com/"], 
        "女性" : ["eladies", "lady", "http://eladies.sina.com.cn/", "http://lady.163.com/", "http://lady.qq.com/"], 
        "科技" : ["tech.", "tech/", "tech_yejie", "http://tech.sina.com.cn/", "http://tech.163.com/", "tech_yejie.htm", "http://tech.ifeng.com/"]
    }

if __name__ == '__main__':
    pass